//
//  RequestManager.h
//  20160628_Leisure
//
//  Created by xalo on 16/6/28.
//  Copyright © 2016年 蓝鸥科技有限公司西安分公司. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef void (^RequestCompeleted)(NSData *data);//请求完成
typedef void (^UpdateUI)();//刷新UI

@interface RequestManager : NSObject
//请求数据，根据类型会自动识别请求方式
+(void)fetchDataWithUrl:(NSString *)url parameter:(NSDictionary *)parameter method:(NSString *)method compeleted:(RequestCompeleted)complete updateUI:(UpdateUI)update;
@end
